
/*
 *
 *  Copyright (C) 2012-2024
 *  All rights reserved, Designed By 杭州连线客信息技术有限公司
 *  注意：
 *  本软件为杭州连线客信息技术有限公司开发研制，未经购买不得使用
 *  购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
 *  一经发现盗用、分享等行为，将追究法律责任，后果自负
 *
 */

package com.lxk.oms.order.domain.bo;

import com.lxk.oms.order.domain.OmsOrderCommentItem;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 子订单评论业务对象 oms_order_comment_item
 *
 * @author LXK-RY5
 * @date 2024-10-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OmsOrderCommentItem.class, reverseConvertGenerate = false)
public class OmsOrderCommentItemBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商户id
     */
    @NotNull(message = "商户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long merId;

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 订单评论
     */
    @NotBlank(message = "订单评论不能为空", groups = { AddGroup.class, EditGroup.class })
    private String comment;

    /**
     * 评论图片
     */
    @NotBlank(message = "评论图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commentPic;

    /**
     * 评论视频
     */
    @NotBlank(message = "评论视频不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commentVideo;

    /**
     * 好评得分默认4分
     */
    @NotNull(message = "好评得分默认4分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal positiveScore;

    /**
     * 评论ID
     */
    @NotNull(message = "评论ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long commentId;

    /**
     * 子订单ID
     */
    @NotNull(message = "子订单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderItemId;

    /**
     * SPUID
     */
    @NotNull(message = "SPUID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long spuId;

    /**
     * SKUID
     */
    @NotNull(message = "SKUID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long skuId;

    /**
     * 订单类型 0=普通订单 100积分订单
     */
    private Integer orderType;

}
